package com.baseutils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by juli on 2020/3/3.
 */

public class TimeUtils {

    public static  String gettime(){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// HH:mm:ss
//获取当前时间
        Date date = new Date(System.currentTimeMillis());
        String format = simpleDateFormat.format(date);
        return  format;
    }
}
